﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;

namespace Service.Main
{
    public class MainService_Design : IMainService
    {
        public Task<List<MenuInfo>> GetMenuInfos()
        {
            return Task<List<MenuInfo>>.Run(() =>
            {
                return new List<MenuInfo>()
                {
                    new MenuInfo
                    {
                        Name="平台主页",IconCode="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="平台主页1"},
                            new MenuInfo{ IconCode ="cubes",Name="平台主页2"},
                            new MenuInfo{ IconCode ="cubes",Name="平台主页3"},
                            new MenuInfo
                            {
                                IconCode="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="平台主页4"},
                                    new MenuInfo{ IconCode ="cubes",Name="平台主页5"},
                                    new MenuInfo{ IconCode ="cubes",Name="平台主页6",FormUrl="sadwet"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="农资管理",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="农资管理1"},
                            new MenuInfo{ IconCode ="cubes",Name="农资管理2"},
                            new MenuInfo{ IconCode ="cubes",Name="农资管理3"},
                            new MenuInfo
                            {
                                IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="农资管理4"},
                                    new MenuInfo{ IconCode ="cubes",Name="农资管理5"},
                                    new MenuInfo{ IconCode ="cubes",Name="农资管理6"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="产品管理",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="产品管理1"},
                            new MenuInfo{ IconCode ="cubes",Name="产品管理2"},
                            new MenuInfo{ IconCode ="cubes",Name="产品管理3"},
                            new MenuInfo
                            {
                                IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="产品管理4"},
                                    new MenuInfo{ IconCode ="cubes",Name="产品管理5"},
                                    new MenuInfo{ IconCode ="cubes",Name="产品管理6"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="系统管理",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="系统管理1"},
                            new MenuInfo{ IconCode ="cubes",Name="系统管理2"},
                            new MenuInfo{ IconCode ="cubes",Name="系统管理3"},
                            new MenuInfo
                            {
                                IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="系统管理4"},
                                    new MenuInfo{ IconCode ="cubes",Name="系统管理5"},
                                    new MenuInfo{ IconCode ="cubes",Name="系统管理6"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="设备信息",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="设备信息1"},
                            new MenuInfo{ IconCode ="cubes",Name="设备信息2"},
                            new MenuInfo{ IconCode ="cubes",Name="设备信息3"},
                            new MenuInfo
                            {
                                IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="设备信息4"},
                                    new MenuInfo{ IconCode ="cubes",Name="设备信息5"},
                                    new MenuInfo{ IconCode ="cubes",Name="设备信息6"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="信息管理",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="信息管理1"},
                            new MenuInfo{ IconCode ="cubes",Name="信息管理2"},
                            new MenuInfo{ IconCode ="cubes",Name="信息管理3"},
                            new MenuInfo
                            {
                                IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="信息管理4"},
                                    new MenuInfo{ IconCode ="cubes",Name="信息管理5"},
                                    new MenuInfo{ IconCode ="cubes",Name="信息管理6"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="预警管理",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="预警管理1"},
                            new MenuInfo{ IconCode ="cubes",Name="预警管理2"},
                            new MenuInfo{ IconCode ="cubes",Name="预警管理3"},
                            new MenuInfo
                            {
                                IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="预警管理4"},
                                    new MenuInfo{ IconCode ="cubes",Name="预警管理5"},
                                    new MenuInfo{ IconCode ="cubes",Name="预警管理6"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="服务指标",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="服务指标1"},
                            new MenuInfo{ IconCode ="cubes",Name="服务指标2"},
                            new MenuInfo{ IconCode ="cubes",Name="服务指标3"},
                            new MenuInfo
                            {
                                IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="服务指标4"},
                                    new MenuInfo{ IconCode ="cubes",Name="服务指标5"},
                                    new MenuInfo{ IconCode ="cubes",Name="服务指标6"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="信息发布",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="信息发布1"},
                            new MenuInfo{ IconCode ="cubes",Name="信息发布2"},
                            new MenuInfo{ IconCode ="cubes",Name="信息发布3"},
                            new MenuInfo
                            {
                               IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="信息发布4"},
                                    new MenuInfo{ IconCode ="cubes",Name="信息发布5"},
                                    new MenuInfo{ IconCode ="cubes",Name="信息发布6"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="工作考核",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="工作考核1"},
                            new MenuInfo{ IconCode ="cubes",Name="工作考核2"},
                            new MenuInfo{ IconCode ="cubes",Name="工作考核3"},
                            new MenuInfo
                            {
                                IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="工作考核4"},
                                    new MenuInfo{ IconCode ="cubes",Name="工作考核5"},
                                    new MenuInfo{ IconCode ="cubes",Name="工作考核6"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="水肥一体",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="水肥一体1"},
                            new MenuInfo{ IconCode ="cubes",Name="水肥一体2"},
                            new MenuInfo{ IconCode ="cubes",Name="水肥一体3"},
                            new MenuInfo
                            {
                                IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="水肥一体4"},
                                    new MenuInfo{ IconCode ="cubes",Name="水肥一体5"},
                                    new MenuInfo{ IconCode ="cubes",Name="水肥一体6"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="气象认证",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="气象认证1"},
                            new MenuInfo{ IconCode ="cubes",Name="气象认证2"},
                            new MenuInfo{ IconCode ="cubes",Name="气象认证3"},
                            new MenuInfo
                            {
                                IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="气象认证4"},
                                    new MenuInfo{ IconCode ="cubes",Name="气象认证5"},
                                    new MenuInfo{ IconCode ="cubes",Name="气象认证6"},
                                }
                            }
                        }
                    },
                    new MenuInfo
                    {
                        Name="图片信息",IconCode ="cubes",
                        ChildMenuInfos=new List<MenuInfo>
                        {
                            new MenuInfo{ IconCode ="cubes",Name="图片信息1"},
                            new MenuInfo{ IconCode ="cubes",Name="图片信息2"},
                            new MenuInfo{ IconCode ="cubes",Name="图片信息3"},
                            new MenuInfo
                            {
                                IconCode ="cubes",Name="子功能组一",
                                ChildMenuInfos=new List<MenuInfo>
                                {
                                    new MenuInfo{ IconCode ="cubes",Name="图片信息4"},
                                    new MenuInfo{ IconCode ="cubes",Name="图片信息5"},
                                    new MenuInfo{ IconCode ="cubes",Name="图片信息6"},
                                }
                            }
                        }
                    }
                };
            });
        }
    }
}
